package org.chungyan5.flashcard;

import org.chungyan5.flashcard.ui.ActivityLessons;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.View;

public class ActivityMainSelection extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_selection);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main_selection, menu);
        return true;
    }
    
    /** Called when the user clicks the Save button */
    public void abc(View view) {
    	
    	Abc abc = new Abc();
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", abc);
		startActivity(intent);
    }
    
    public void abcCapital(View view) {
    	
    	AbcCapital abcCapital = new AbcCapital();
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", abcCapital);
		startActivity(intent);
    }
    
    public void num(View view) {
    	
    	Num num = new Num(0);
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", num);
		startActivity(intent);
    }
    
    public void num20(View view) {
    	
    	Num num = new Num(20);
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", num);
		startActivity(intent);
    }
    
    public void num40(View view) {
    	
    	Num num = new Num(40);
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", num);
		startActivity(intent);
    }
    
    public void num60(View view) {
    	
    	Num num = new Num(60);
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", num);
		startActivity(intent);
    }
    
    public void num80(View view) {
    	
    	Num num = new Num(80);
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", num);
		startActivity(intent);
    }
    
    public void chineseNum(View view) {
    	
    	ChineseNum chineseNum = new ChineseNum();
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", chineseNum);
		startActivity(intent);
    }
    
    public void color(View view) {
    	
    	Color color = new Color();
    	
		Intent intent = new Intent(this, ActivityLessons.class);
		intent.putExtra("Lesson", color);
		startActivity(intent);
    }
    
}
